package com.sample.springconf;

import org.springframework.context.ApplicationContext;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

//@Component("slaveDataSource")
public class DynamicDataSource   {

    private Map<Object, Object> targetDataSources = new ConcurrentHashMap<>();

    private static ApplicationContext ctx;

    protected Object determineCurrentLookupKey() {

        return "dataSource2";
    }

}

